package com.bnz.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data // 创建get，set，toString方法
@AllArgsConstructor // 全参构造
@NoArgsConstructor  // 无参构造
public class User implements Serializable {
    private Integer id;

    private String username;

    private Double balance;

    public User(Integer id,Double balance){
        this.id = id;
        this.balance = balance;
    }

}